home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / dev / debug / Wipeout.lha / source / wipeoutsemaphore.h < prev   
C/C++ Source or Header  |  1998-04-14  |  2KB  |  66 lines

  1. /*
  2.  * $Id: wipeoutsemaphore.h 1.7 1998/04/14 09:28:17 olsen Exp olsen $
  3.  *
  4.  * :ts=4
  5.  *
  6.  * Wipeout -- Traces and munges memory and detects memory trashing
  7.  *
  8.  * Written by Olaf `Olsen' Barthel <olsen@sourcery.han.de>
  9.  * Public Domain
  10.  */
  11.  
  12. #ifndef _WIPEOUTSEMAPHORE_H
  13. #define _WIPEOUTSEMAPHORE_H 1
  14.  
  15. /****************************************************************************/
  16.  
  17. #define WIPEOUTSEMAPHORENAME    "« Wipeout »"
  18. #define WIPEOUTSEMAPHOREVERSION 1
  19.  
  20. /****************************************************************************/
  21.  
  22. struct WipeoutSemaphore
  23. {
  24.     struct SignalSemaphore    ws_SignalSemaphore;    /* regular semaphore */
  25.     WORD                    ws_Version;            /* semaphore version number */
  26.  
  27.     UBYTE                    ws_SemaphoreName[(sizeof(WIPEOUTSEMAPHORENAME)+3) & ~3];
  28.  
  29.     struct Task *            ws_WipeoutTask;        /* semaphore creator */
  30.     ULONG                    ws_WakeupMask;        /* mask to wake creator with */
  31.  
  32.     struct Task *            ws_Client;            /* client interfacing to creator */
  33.     LONG                    ws_Command;            /* command to perform by creator */
  34.     APTR                    ws_Parameter;        /* parameter for command */
  35.     LONG                    ws_Error;            /* creator result code */
  36.  
  37.     BOOL *                    ws_IsActive;        /* all options */
  38.     BOOL *                    ws_ShowFail;
  39.     BOOL *                    ws_CheckConsistency;
  40.     BOOL *                    ws_WaitAfterHit;
  41.     BOOL *                    ws_NameTag;
  42.     BOOL *                    ws_NoReuse;
  43.     BOOL *                    ws_ARegCheck;
  44.     BOOL *                    ws_DRegCheck;
  45.     BOOL *                    ws_StackCheck;
  46.     LONG *                    ws_StackLines;
  47.     LONG *                    ws_CheckDelay;
  48. };
  49.  
  50. /****************************************************************************/
  51.  
  52. /* the commands the Wipeout semaphore owner knows */
  53. enum
  54. {
  55.     WIPEOUTCMD_UpdateFilterList,
  56.     WIPEOUTCMD_NewCheckDelay,
  57.     WIPEOUTCMD_Remunge,
  58.     WIPEOUTCMD_Mark,
  59.     WIPEOUTCMD_Unmark,
  60.     WIPEOUTCMD_ShowUnmarked,
  61. };
  62.  
  63. /****************************************************************************/
  64.  
  65. #endif /* _WIPEOUTSEMAPHORE_H */
  66.